/**
 * 
 */
package com.ccqlk.attendance.controller.manage;

import javax.servlet.http.HttpServletRequest;

import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;

/**
 * Copyright 2015-2018 重庆鲁控科技有限公司<br>
 * 文件标题: BaseController<br>
 * 文件说明: TODO<br>
 * @author ZhangYinxian 348893009@qq.com<br>
 * 创建时间 2016年5月27日 上午9:13:07<br>
 */
public interface BaseController<T, ID> {

	String preAdd(HttpServletRequest request,Model model);
	String add(HttpServletRequest request,T entity, BindingResult result);
	String preEdit(HttpServletRequest request,ID key, Model model);
	String edit(HttpServletRequest request,T entity, BindingResult result);
	String delete(HttpServletRequest request,ID key) throws Exception;
	String list(HttpServletRequest request);
	Model getJson(HttpServletRequest request, Model model);
	
}
